using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class _Default : System.Web.UI.Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {
        // check if visit for 1st time
        if (Profile.LastVisit.Year == 1)
            lblLastVisit.Text = "This is your first time visit";
        else
            lblLastVisit.Text = "The last visit on " + Profile.LastVisit.ToString();

        // Update the last visit detail to current time
        Profile.LastVisit = DateTime.Now;
        // display the NIckName
        if (Profile.NickName != "")
            lblNickName.Text = Profile.NickName;
    }
}
